from utils.SqlUtil import Base, engine
from sqlalchemy import Column, Integer, String, Date
import datetime


class FilePath(Base):
    __tablename__ = 'file_path'

    id = Column(Integer, primary_key=True)
    basicDataId = Column(Integer, name='basic_data_id')
    title = Column(String(200))
    path = Column(String(300))
    createTime = Column(Date, name='create_time', default=datetime.datetime.now())

    def __init__(self, basicDataId, title, path):
        self.basicDataId = basicDataId
        self.title = title
        self.path = path
